﻿using BestTrader.Cms.ViewModels;
using FluentValidation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace BestTrader.Cms.WebApi.Validation
{
    public class OutCashValidation : AbstractValidator<OutCashModel>
    {
        public OutCashValidation()
        {
           
            RuleFor(x => x.ManagerId).GreaterThan(0).WithMessage("当前用户不存在");
            RuleFor(x => x.RmmfUserId).NotNull().GreaterThan(0).WithMessage("第三方用户不存在");
            RuleFor(x => x.Money).GreaterThan(0).LessThanOrEqualTo(6000).WithMessage("单笔最高出金6000美元");
            // 用户未审核

        }
    }
}
